<?php /* Smarty version 2.6.26, created on 2018-07-25 19:44:07
         compiled from default/header.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'uqcms', 'default/header.html', 48, false),)), $this); ?>
<div class="top_bar">
<?php if (( $_GET['m'] == 'index' && $_GET['a'] == 'index' ) || ( $_GET['m'] == '' && $_GET['a'] == '' )): ?> 
	<div class="top index_red">
		<div class="tmenu"><a href="wap.php?a=cats">菜单</a></div> 
		<div class="sch"> 
			<div class="schbox"> 
				<span></span>
				<div class="input_clk"> 
					<input type="text" value="<?php echo $_GET['key']; ?>
" class="sch_input" placeholder="搜索您想找的商品"/>
				</div> 
			</div>
		</div>
		<div class="tcart"><a href="wap.php?m=cart&a=index">购物车</a></div>	
	</div>	
<?php else: ?>
	<div class="top">
		<div class="tback"><a href="javascript:history.go(-1);">&nbsp;</a></div>
		<div class="sch"> 
			<div class="schbox"> 
				<span></span>
				<div class="input_clk"> 
					<input type="text" value="<?php echo $_GET['key']; ?>
" class="sch_input" placeholder="搜索您想找的商品"/>
				</div> 
			</div>
		</div>
		<div class="tcart"><a href="wap.php?m=cart&a=index">购物车</a></div>	
	</div>
<?php endif; ?>
</div>
<div class="schAll">
	<form action="wap.php" method="get">
		<input type="hidden" name="m" value="goods"/>
		<div class="schBox"> 
			<em class="close">关闭</em> 
			<div class="input">
				<span></span>
				<input type="text" name="key" class="sch_input2" autocomplete="off" placeholder="搜索产品"/>
			</div>
			<div class="go"><input type="submit" class="sch_sub" value="搜索"/></div>
		</div>
	</form>
	<div class="shot">
		<div class="shot_c">
			<div class="name"><span>热门搜索</span></div>
			<div class="con">
				<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'hotkey','c' => "keyword:limit=8"), $this);?>

				<?php $_from = $this->_tpl_vars['hotkey']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ky'] => $this->_tpl_vars['k']):
?>
					<a href="wap.php?m=goods&key=<?php echo $this->_tpl_vars['k']['keyword']; ?>
" title="<?php echo $this->_tpl_vars['k']['keyword']; ?>
" <?php if ($this->_tpl_vars['k']['hot'] == '1'): ?>class="ch"<?php endif; ?>><span><?php echo $this->_tpl_vars['k']['keyword']; ?>
</span></a>
				<?php endforeach; endif; unset($_from); ?>
			</div>
		</div>	
	</div>
</div>
<div style="clear:both;"></div>
<script type="text/javascript">
$(function(){
	$('input.sch_input').click(function(){
		$(".schAll").show();
		$("input.sch_input2").focus();
		$("html").css('overflow','hidden');
	});
	$(".schAll em.close").click(function(){
		$(".schAll").hide();
		$("html").css('overflow','auto');
	});
});
</script>